AppleScript Examples (Mac)

These are example scripts to illustrate how you can use AppleScript. Additional examples are available from the EndNote support site at www.endnote.com/support.

Example 1: Start EndNote, create a new library named DinoLibrary in a Libraries folder, and close the new library

AppleScript example image

Example 2: Start EndNote, open the Sample_Library_X9 library, search the Keywords field for the term "dinosaur," format the references in the Annotated style, and save the results to your desktop in an RTF file titled "DinoReading.rtf"

AppleScript example image

Example 3: Get a list (in ScriptEditor) of all output styles currently available in EndNote

AppleScript example image

 

Example 4: Attach PMID.pdf files to existing EndNote references.

This is a more complicated script which will attach PDF files to the File Attachment field in existing EndNote references. For this example, we must assume these things:

Note: Lines that begin with "- -" are comments that are not part of the script.